-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fragment model #253
base: master
Are you sure you want to change the base?
Fragment model #253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat is een fragment? 😆
Ziet er goed uit!
@@ -115,6 +116,12 @@ def lines(self): | |||
self.datasource_class(self.h5py_file, "lines"), **self._grid_kwargs | |||
) | |||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat gebeurd hier als je een oude gridadmin pakt zonder 'fragments' ? Moet er nog een check in dat het bestaat of vangen we dat al ergens af..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goeie, hier zal ik een testje voor toevoegen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
welke test valideert dat fragments aanroepen op een gewone gridadmin geen error geeft?
@@ -508,6 +508,20 @@ def export_pumps(self): | |||
dest, indent=self._indent | |||
) | |||
|
|||
def export_fragments(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moeten fragments (uiteindelijk) ook als geojson in de API terecht komen? Nb. kan prima als een follow-up,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twee vraagjes en vergeet de changelog niet!
@@ -508,6 +508,20 @@ def export_pumps(self): | |||
dest, indent=self._indent | |||
) | |||
|
|||
def export_fragments(self): | |||
if not self.ga.fragments.id.size == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
als de gridadmin geen fragments geeft dan hebben ze ook geen id. Dus ga.fragments.id
gaat dan mis denk ik
Added Fragments to the model, including some implementation to the exporters to deal with polygons.
#254